object FormPesquisaComboio: TFormPesquisaComboio
  Left = 185
  Top = 147
  Width = 595
  Height = 375
  BorderIcons = [biSystemMenu, biMinimize]
  Caption = 'Pesquisa'
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  KeyPreview = True
  OldCreateOrder = False
  Position = poDesktopCenter
  OnClose = FormClose
  OnKeyDown = FormKeyDown
  OnShow = FormShow
  PixelsPerInch = 96
  TextHeight = 13
  object Panel1: TPanel
    Left = 0
    Top = 0
    Width = 587
    Height = 50
    Align = alTop
    TabOrder = 0
    object EditPesq: TEdit
      Left = 8
      Top = 16
      Width = 121
      Height = 21
      TabOrder = 0
    end
    object btnIncluirPesq: TJvXPButton
      Left = 136
      Top = 16
      Caption = 'Incluir'
      TabOrder = 1
      OnClick = btnIncluirPesqClick
    end
  end
  object Panel2: TPanel
    Left = 0
    Top = 291
    Width = 587
    Height = 50
    Align = alBottom
    TabOrder = 1
    object JvXPButton5: TJvXPButton
      Left = 136
      Top = 16
      Width = 80
      Height = 25
      Caption = 'OK'
      TabOrder = 0
      Glyph.Data = {
        07544269746D6170F6060000424DF60600000000000036000000280000001800
        0000180000000100180000000000C00600000000000000000000000000000000
        0000FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FF3C9E3A3D9F3B3DA13B3DA13B3DA13B3C9E3A3C9E3AFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FF3C9E3A3EA43C42AB3F43B04045B24245B24245B24243B04040
        A83E3EA23C3C9E3AFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FF3C9E3A3EA43C43AE4045B44249BC464DBE4A50BF4D50BF
        4D50BF4D4DBE4A47BC4445B44242AD3F3DA13BFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FF3C9E3A3EA23C44B14147BA444FBE4C56C153
        59C2565BC3595CC45A5BC35959C25653C0504DBE4A47BA4443AE403DA13BFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF3DA13B43B04049BC4652
        BF4F5AC35746B743FFFFFF65C76365C76364C66262C6605EC45C59C25652BF4F
        47BA4443AE403DA13BFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF3D9F3B43AE
        4047BC4453C0505CC45A4CBD49FFFFFFFFFFFF4ABD476CCA6A6BC9696BC96967
        C76564C6625CC45A52BF4F47BA4442AD3F3C9E3AFF00FFFF00FFFF00FFFF00FF
        FF00FF3FA73D46B5434FBE4C5CC45A47BC44FFFFFFFFFFFFFFFFFFFFFFFF4FBE
        4C6FCB6D6ECA6C6CCA6A68C86664C66259C2564DBE4A45B4423EA23CFF00FFFF
        00FFFF00FFFF00FF3C9E3A43AE4049BC4656C15346B543FFFFFFFFFFFFFFFFFF
        FFFFFFFFFFFFFFFFFF67C76571CB6F6FCB6D6CCA6A67C7655EC45C53C05047BC
        4440A83E3C9E3AFF00FFFF00FFFF00FF3D9F3B45B2423FA53DC3EAC2FFFFFFFF
        FFFFFFFFFFFFFFFF72CC70FFFFFFFFFFFFFFFFFF81D17F8DD58B8BD58982D280
        62C66059C2564DBE4A43B0403C9E3AFF00FFFF00FFFF00FF3EA23C46B5437BCF
        796ECA6CFFFFFFFFFFFFFFFFFF7BCF798DD58BFFFFFFFFFFFFFFFFFFF3FBF394
        D89294D89290D68E8BD58984D2827BCF7945B2423DA13BFF00FFFF00FFFF00FF
        46B5437BCF7984D2828ED68C7ED07CFCFEFCFFFFFF9DDB9B9DDB9B84D282FFFF
        FFFFFFFFFFFFFF85D3839ADA9898DA9693D7918DD58B84D28278CE7645B242FF
        00FFFF00FFFF00FF5BC35985D38390D68E97D9959DDB9BA0DD9F9FDC9EA5DEA4
        A5DEA4A5DEA4FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8BD5899DDB9B97D9958ED6
        8C84D2825AC357FF00FFFF00FFFF00FF3D9F3B8ED68C97D9959EDC9CA5DEA4A8
        DFA7AAE1A9ACE1ABACE1ABACE1AB98DA96FFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
        A3DEA29DDB9B97D9958DD58B3D9F3BFF00FFFF00FFFF00FF3C9E3A95D9939DDB
        9BA3DEA2AAE1A9ADE2ACB0E3AFB2E3B1B2E3B1B2E3B1B2E3B1A0DD9FFFFFFFFF
        FFFFFFFFFFFFFFFFA8DFA7A3DEA29DDB9B93D7913C9E3AFF00FFFF00FFFF00FF
        FF00FF9EDC9CA5DEA4AAE1A9B2E3B1B5E4B4B8E5B7B9E6B8BBE6BABBE6BABBE6
        BABBE6BAAAE1A9FFFFFFFFFFFFFFFFFFB0E3AFAAE1A9A3DEA29BDB99FF00FFFF
        00FFFF00FFFF00FFFF00FF3DA13BAAE1A9B0E3AFB6E5B5BBE6BABEE7BDBFE8BE
        BFE8BEC0E9BFC0E9BFC0E9BFBFE8BEC9ECC8FFFFFFFFFFFFB5E4B4B0E3AFAAE1
        A93C9E3AFF00FFFF00FFFF00FFFF00FFFF00FF3C9E3AB2E3B1B6E5B5BBE6BABF
        E8BEC2E9C1C3EAC2C5EAC4C6EBC5C6EBC5C6EBC5C5EAC4C3EAC2B6E5B5FFFFFF
        B9E6B8B6E5B5B0E3AFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF3C9E
        3ABCE7BBC0E9BFC5EAC4C6EBC5C9ECC8CBECCACBECCACBECCACBECCACBECCAC9
        ECC8C6EBC5C3EAC2C0E9BFBCE7BB3C9E3AFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FF3C9E3AC5EAC4C8EBC7CBECCACCEDCBCEEDCDCFEECECFEE
        CECFEECECEEDCDCCEDCBCBECCAC8EBC7A9E0A83C9E3AFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF3C9E3A3DA13BCEEDCDD1EED0
        D2EFD1D2EFD1D2EFD1D2EFD1D2EFD1D1EED0CEEDCD3DA13BFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FF3C9E3A3D9F3B95D993D1EED094D8923D9F3B3C9E3AFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FF}
      OnClick = JvXPButton5Click
    end
    object JvXPButton6: TJvXPButton
      Left = 368
      Top = 16
      Width = 80
      Height = 25
      Caption = 'Cancelar'
      TabOrder = 1
      Glyph.Data = {
        07544269746D6170F6060000424DF60600000000000036000000280000001800
        0000180000000100180000000000C00600000000000000000000000000000000
        0000FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FF1A2ABE1A2ABF1A29C21A29C21A29C11A2ABE1A2ABEFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FF1A2ABE1A29C51C2BCD1D2ED21D30D61C2FD71D2FD61D2ED21B
        2ACB1A29C41A2ABEFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FF1A2ABE1A29C51D2DD01D30D91E30E31F31E92033EB2033
        EC2033EB1F31E81E2FE11C2FD91C2CCF1A29C1FF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FF1A2ABE1A29C41D2ED41E2FE01F33EB2134F3
        2135F72235FA2235FB2235FA2135F72033F01F32E91E2FDF1D2DD01A29C2FF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF1A29C21D2ED21E30E320
        33EE2135F82337FE273CFF2A3EFF2A3EFF293DFF263CFF1F31E72135F72033ED
        1E2FDF1D2DD01A29C1FF00FFFF00FFFF00FFFF00FFFF00FFFF00FF1A29BF1D2E
        D11E2FE12033F02236FBCDD1F2FCFCFF3044F13348FF3449FF3348FF2B3DDAFF
        FFFF2234DA2236FC2033ED1E2FDF1C2CCF1A2ABEFF00FFFF00FFFF00FFFF00FF
        FF00FF1B2BC91D30DA1F33EB2235FACED1F2FFFFFFFFFFFFFAFAFE3749F1394C
        FF3141DAFFFFFFFFFFFFFFFFFF2234DB2135F71F32E91C2FD91A29C4FF00FFFF
        00FFFF00FFFF00FF1A2ABE1D2ED11E30E32133F21F31D9FFFFFFFFFFFFFFFFFF
        FFFFFFFCFCFE3343DAFFFFFFFFFFFFFFFFFFFFFFFFFBFBFF2236FD2033F01E2F
        E11B2ACB1A2ABEFF00FFFF00FFFF00FF1A29C01C2FD81F33EA2236F92A3EFF4D
        5BDFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF9AA1E15365FF
        263CFF2135F71F31E81D2ED21A2ABEFF00FFFF00FFFF00FF1A29C31D30DA5765
        F15967FC6070FF6676FF6470E2FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA2
        A8E36A78FF6575FF5E6DFF5967FB5765F01D2FD61A29C1FF00FFFF00FFFF00FF
        2D3CCA616EE66271F26472FD6C7AFF717FFF7481FF717BE6FFFFFFFFFFFFFFFF
        FFFFFFFFFEFEFF7683FF7481FF717FFF6978FF6471FC6270F2606DE32D3BC7FF
        00FFFF00FFFF00FF4B57D16E7AE7707CF3717EFD7785FF7C89FF7B85E7FFFFFF
        FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF7E89F57C89FF7683FF717DFC707C
        F26E7AE54B57CFFF00FFFF00FFFF00FF1A29C07985E87B86F37D89FB828DFF82
        8DE9FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8591F7
        808CFF7C88FA7B86F27A84E51A2ABFFF00FFFF00FFFF00FF1A2ABE858EE7858F
        F18792F98691EAFFFFFFFFFFFFFFFFFFFFFFFFFDFDFF919AECFFFFFFFFFFFFFF
        FFFFFFFFFFFEFEFF8893FE8791F9858FF0848CE41A2ABEFF00FFFF00FFFF00FF
        FF00FF929AE6939CEE949DF5959FFEC0C4EDFFFFFFFFFFFFC3C7EDA0A9FFA0A9
        FF9CA4ECFFFFFFFFFFFFFFFFFF959EED959EFC949DF5939CED9199E3FF00FFFF
        00FFFF00FFFF00FFFF00FF1B2AC09EA6EC9FA6F3A0A8F9A1A9FEC6CAEFC8CCEF
        A7B0FFA8B1FFA8B1FFA8B1FFA4ACEEFFFFFFA1A8EFA1A9FEA0A8F89FA6F29EA5
        EB1A2ABEFF00FFFF00FFFF00FFFF00FFFF00FF1A2ABEA9AFEAAAB1F0AAB1F6AB
        B2FAACB3FEADB6FFAFB6FFB0B7FFB0B8FFB0B7FFAFB6FFABB2F4ACB3FDABB2F9
        AAB1F4AAB0EFA9AEE9FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF1A2A
        BEB5BBEDB6BCF2B7BCF6B7BDF9B8BEFBB8BEFDB8BEFEB8BEFEB8BEFEB8BEFDB8
        BDFBB7BDF9B7BCF5B6BCF1B5BAEC1A2ABEFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FF1A2ABEBFC4EFC0C5F2C0C5F5C0C5F8C1C6F9C1C6FAC1C6
        FAC1C6FAC1C6F9C0C5F7C0C5F5C0C5F2A2A8E61A2ABEFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF1A2ABE1C2BC0C8CCF2C9CDF4
        C9CDF6C9CDF6C9CDF7C9CDF6C9CDF6C9CDF4C8CCF21C2BC0FF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FF1A2ABE1A29C08A92E1CBCFF28A92E01A29C01A2ABEFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FF
        FF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00
        FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF00FFFF
        00FF}
      OnClick = JvXPButton6Click
    end
  end
  object Panel3: TPanel
    Left = 0
    Top = 50
    Width = 587
    Height = 241
    Align = alClient
    TabOrder = 2
    object Panel4: TPanel
      Left = 1
      Top = 1
      Width = 270
      Height = 239
      Align = alLeft
      BorderStyle = bsSingle
      TabOrder = 0
      object DBGridOrigem: TDBGrid
        Left = 1
        Top = 1
        Width = 264
        Height = 233
        Align = alClient
        BorderStyle = bsNone
        Ctl3D = False
        DataSource = dsOrigem
        Options = [dgEditing, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgConfirmDelete, dgCancelOnExit, dgMultiSelect]
        ParentCtl3D = False
        ReadOnly = True
        TabOrder = 0
        TitleFont.Charset = DEFAULT_CHARSET
        TitleFont.Color = clWindowText
        TitleFont.Height = -11
        TitleFont.Name = 'MS Sans Serif'
        TitleFont.Style = []
        Columns = <
          item
            Expanded = False
            FieldName = 'CODCOMBOIO'
            Title.Caption = 'Comboio'
            Width = 46
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'DATA'
            Title.Caption = 'Data'
            Width = 52
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'KMPREVISTO'
            Title.Caption = 'KM previsto'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'VALOR'
            Title.Caption = 'Valor km'
            Width = 48
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'valorcomboio'
            Title.Caption = 'Valor total'
            Visible = True
          end>
      end
    end
    object Panel5: TPanel
      Left = 316
      Top = 1
      Width = 270
      Height = 239
      Align = alRight
      BorderStyle = bsSingle
      TabOrder = 1
      object DBGrid1: TDBGrid
        Left = 1
        Top = 1
        Width = 264
        Height = 233
        Align = alClient
        BorderStyle = bsNone
        Ctl3D = False
        DataSource = dsDestino
        Options = [dgEditing, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgConfirmDelete, dgCancelOnExit, dgMultiSelect]
        ParentCtl3D = False
        ReadOnly = True
        TabOrder = 0
        TitleFont.Charset = DEFAULT_CHARSET
        TitleFont.Color = clWindowText
        TitleFont.Height = -11
        TitleFont.Name = 'MS Sans Serif'
        TitleFont.Style = []
        Columns = <
          item
            Expanded = False
            FieldName = 'CODCOMBOIO'
            Title.Caption = 'Comboio'
            Width = 46
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'DATA'
            Title.Caption = 'Data'
            Width = 52
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'KMPREVISTO'
            Title.Caption = 'KM previsto'
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'VALOR'
            Title.Caption = 'Valor km'
            Width = 48
            Visible = True
          end
          item
            Expanded = False
            FieldName = 'valorcomboio'
            Title.Caption = 'Valor total'
            Visible = True
          end>
      end
    end
    object JvXPButton1: TJvXPButton
      Left = 273
      Top = 60
      Width = 40
      Caption = '>'
      TabOrder = 2
      OnClick = JvXPButton1Click
    end
    object JvXPButton2: TJvXPButton
      Left = 273
      Top = 90
      Width = 40
      Caption = '<'
      TabOrder = 3
      OnClick = JvXPButton2Click
    end
    object JvXPButton3: TJvXPButton
      Left = 273
      Top = 120
      Width = 40
      Caption = '>>'
      TabOrder = 4
      OnClick = JvXPButton3Click
    end
    object JvXPButton4: TJvXPButton
      Left = 273
      Top = 150
      Width = 40
      Caption = '<<'
      TabOrder = 5
      OnClick = JvXPButton4Click
    end
  end
  object dsOrigem: TDataSource
    DataSet = QueryOrigem
    Left = 389
    Top = 11
  end
  object dsDestino: TDataSource
    DataSet = QueryDestino
    Left = 432
    Top = 8
  end
  object QueryOrigem: TZQuery
    Connection = DMprinc.ZConnection1
    OnCalcFields = QueryOrigemCalcFields
    SQL.Strings = (
      'select * from comboio'
      'where (codfatura is null or codfatura = 0)'
      'and codcliente = :pcodcliente')
    Params = <
      item
        DataType = ftInteger
        Name = 'pcodcliente'
        ParamType = ptUnknown
      end>
    Left = 232
    Top = 8
    ParamData = <
      item
        DataType = ftInteger
        Name = 'pcodcliente'
        ParamType = ptUnknown
      end>
    object QueryOrigemCODCOMBOIO: TIntegerField
      FieldName = 'CODCOMBOIO'
      Required = True
    end
    object QueryOrigemDATA: TDateField
      FieldName = 'DATA'
    end
    object QueryOrigemKMPREVISTO: TIntegerField
      FieldName = 'KMPREVISTO'
    end
    object QueryOrigemVALOR: TFloatField
      FieldName = 'VALOR'
    end
    object QueryOrigemvalorcomboio: TFloatField
      FieldKind = fkCalculated
      FieldName = 'valorcomboio'
      Calculated = True
    end
    object QueryOrigemCODFATURA: TIntegerField
      FieldName = 'CODFATURA'
    end
  end
  object QueryDestino: TZQuery
    Connection = DMprinc.ZConnection1
    OnCalcFields = QueryDestinoCalcFields
    SQL.Strings = (
      'select * from comboio where codfatura = :pcodfatura')
    Params = <
      item
        DataType = ftInteger
        Name = 'pcodfatura'
        ParamType = ptUnknown
      end>
    Left = 272
    Top = 8
    ParamData = <
      item
        DataType = ftInteger
        Name = 'pcodfatura'
        ParamType = ptUnknown
      end>
    object QueryDestinoCODCOMBOIO: TIntegerField
      FieldName = 'CODCOMBOIO'
      Required = True
    end
    object QueryDestinoDATA: TDateField
      FieldName = 'DATA'
    end
    object QueryDestinoKMPREVISTO: TIntegerField
      FieldName = 'KMPREVISTO'
    end
    object QueryDestinoVALOR: TFloatField
      FieldName = 'VALOR'
    end
    object valorcomboio: TFloatField
      FieldKind = fkCalculated
      FieldName = 'valorcomboio'
      Calculated = True
    end
    object QueryDestinoCODFATURA: TIntegerField
      FieldName = 'CODFATURA'
    end
  end
end
